package com.small.common.msg;

/**
 * 返回对象
 */
public class MsgData<T> extends Msg {

    private T data;

    public MsgData() {
    }

    public MsgData(int code) {
        this.setCode(code);
    }

    public MsgData(int code, String msg) {
        this.setCode(code);
        this.setMsg(msg);
    }

    public MsgData(T data) {
        this.data = data;
        this.setCode(1);
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
